package system.dto.sys;

//***************************************************
// 对象自动生成，可按需要修改字段与属性，自动生成不会产生覆盖
// 需要全新生成时删除本对象重新生成即可
//***************************************************

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 账户编辑参数
 */
@Data
public class SysUserUpdate {
    @ApiModelProperty(value = "id")
    @NotNull
    private Long id;
    @ApiModelProperty(value = "账户名(登录名)")
    @NotNull
    @NotEmpty
    private String username;
    @ApiModelProperty(value = "姓名")
    @NotNull
    @NotEmpty
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ssZ")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ssZ")
    @ApiModelProperty(value = "密码过期时间")
    private Date passwordExpired;
    @ApiModelProperty(value = "下次登录是否要求修改密码0/1")
    private Integer passwordNext;
    @ApiModelProperty(value = "用户邮箱")
    private String mail;
    @ApiModelProperty(value = "手机号码")
    private String mobile;
    @ApiModelProperty(value = "电话号码")
    private String phone;
    @ApiModelProperty(value = "分机号码")
    private String phoneExt;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ssZ")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ssZ")
    @ApiModelProperty(value = "账号过期时间")
    private Date expiredTime;
    @ApiModelProperty(value = "备注")
    private String remark;
}